# Using printf from libc
.section .data
output:
	.asciz "The processor Vendor ID is '%s'\n"

.section .bss
	.lcomm	buffer, 12
.section .text
.globl _start
_start:
	nop
	movq	$0, %rax
	cpuid
	movq	$buffer, %rdi
	movq	%rbx, (%rdi)
	movq	%rdx, 4 (%rdi)
	movq	%rcx, 8 (%rdi)
# has to use pushq instead of pushl for 64-bit
	pushq	$buffer
	pushq	$output
	call	printf
	addq	$8, %rsp
	pushq	$0
	call	exit

